﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Facebook.aspx.cs" Inherits="Test1.Facebook" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    <script type="text/javascript">
    var temp_obj = <%= get_personal_info() %>;
    document.write(
        "First Name = " + temp_obj.first_name + "<br />" +
        "Last Name  = " + temp_obj.last_name + "<br />" +
        "Gender     = " + temp_obj.gender + "<br />" +
        "Link       = " + temp_obj.link + "<br />" +
        "Name       = " + temp_obj.name + "<br />" +
        "username   = " + temp_obj.username + "<hr />");
        
    document.write(
        "<img src='https://graph.facebook.com/" + temp_obj.id + "/picture?type=large' /> <hr />");

    //var name = <%= get_name() %>;
    //document.write(
    //    "Name = " + name + "<hr />");
    </script>
   
    
    </div>
    </form>
</body>
</html>
